html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#cart {
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 45px;
    border-bottom: 1px solid #dddddd;
}

#cart span {
    margin-left: 10px;
    line-height: 45px;
}

#cart h2 {
    text-align: center;
    flex-grow: 1;
}

#items li {
    display: flex;
}

.checkbox input {
    display: none;
}

.checkbox .fakechkbox {
    display: inline-block;
    height: 18px;
    width: 18px;
    border-radius: 9px;
    color: #fff;
    text-align: center;
    -background-color: #e43130;
    font-size: 14px;
    line-height: 18px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

#items {
    display: flex;
    flex-direction: column;
}

#items li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px;
}

#items li .goods {
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

#items li .goods img {
    padding: 0 10px;
    height: 20vw;
    width: 20vw;
}

#items li .goods .detail {    
    flex-grow: 1;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    flex-direction: column;
}

#items li .goods .detail h3 {
    line-height: 30px;
}

#items li .goods .detail p {
    color: #999BA1;
}

#items li .goods .detail strong {
    line-height: 38px;
}

#items li .counter {
    position: absolute;
    display: flex;
    align-items: center;
    right: 10px;
    bottom: 10px;
}

#items li .counter .sub,
#items li .counter .add,
#items li .counter input {
    display: inline-block;
    height: 17px;
    width: 20px;
    border: 1px solid #666;
    color: #000;
    text-align: center;
}

#items li .counter .sub {
    border-right: 0;
}

#items li .counter .add {
    border-left: 0;
}

#items li .counter input {
    width: 29px;
    padding: 0;
}



#checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
}

#checkout a.checkbtn {
    height: 100%;
    width: 68px;
    background-color: #e43130;
    color: #fff;
    line-height: 35px;
    text-align: center;
}

#checkout .checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;    
}

#checkout .checkbox .fakechkbox {
    margin-right: 5px;
}

#checkout .sum {
    color: #666;
}

#bottomline::after {
    background-color: #fff;
}